package br.com.focus4.mobile;


import java.sql.DriverManager;
import java.sql.SQLException;
import com.mysql.jdbc.Connection;

public class ConnectionFactory {
	
	public Connection getConnection(){
		try {
			Class.forName("com.mysql.jdbc.Driver");
			
			Connection con = (Connection) DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/teste","root","C@rol0608");
		
		return con;
		
		} catch(SQLException e) {
		throw new RuntimeException(e);
		} catch(ClassNotFoundException e) {
		throw new RuntimeException(e);
		}
		
	}

}
